package com.ruoyi.system.statis.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.statis.mapper.ServiceStatisMemberMapper;
import com.ruoyi.system.statis.domain.ServiceStatisMember;
import com.ruoyi.system.statis.service.IServiceStatisMemberService;
import com.ruoyi.common.core.text.Convert;

/**
 * 会员统计Service业务层处理
 * 
 * @author Administrator
 * @date 2021-03-06
 */
@Service
public class ServiceStatisMemberServiceImpl implements IServiceStatisMemberService 
{
    @Autowired
    private ServiceStatisMemberMapper serviceStatisMemberMapper;

    /**
     * 查询会员统计
     * 
     * @param id 会员统计ID
     * @return 会员统计
     */
    @Override
    public ServiceStatisMember selectServiceStatisMemberById(Long id)
    {
        return serviceStatisMemberMapper.selectServiceStatisMemberById(id);
    }

    /**
     * 查询会员统计列表
     * 
     * @param serviceStatisMember 会员统计
     * @return 会员统计
     */
    @Override
    public List<ServiceStatisMember> selectServiceStatisMemberList(ServiceStatisMember serviceStatisMember)
    {
        return serviceStatisMemberMapper.selectServiceStatisMemberList(serviceStatisMember);
    }

    /**
     * 新增会员统计
     * 
     * @param serviceStatisMember 会员统计
     * @return 结果
     */
    @Override
    public int insertServiceStatisMember(ServiceStatisMember serviceStatisMember)
    {
        return serviceStatisMemberMapper.insertServiceStatisMember(serviceStatisMember);
    }

    /**
     * 修改会员统计
     * 
     * @param serviceStatisMember 会员统计
     * @return 结果
     */
    @Override
    public int updateServiceStatisMember(ServiceStatisMember serviceStatisMember)
    {
        return serviceStatisMemberMapper.updateServiceStatisMember(serviceStatisMember);
    }

    /**
     * 删除会员统计对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteServiceStatisMemberByIds(String ids)
    {
        return serviceStatisMemberMapper.deleteServiceStatisMemberByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除会员统计信息
     * 
     * @param id 会员统计ID
     * @return 结果
     */
    @Override
    public int deleteServiceStatisMemberById(Long id)
    {
        return serviceStatisMemberMapper.deleteServiceStatisMemberById(id);
    }
}
